No, the apostrophes are all right as they are. The problem has to be in:
Form1.SQLQueryTre['m']
Check what it is returning (both as chars and as bytes); it's possible that at some point or other it's getting converted to some Windows/ISO code-page and it's not re-converting back to UTF-8.