What causes 3 special characters after conversion to UTF-8?

Solution 1:

That's the byte order mark, encoded as UTF-8. Tell your editor to not add it at the beginning, or use a real decoder in your server system.