Fix UTF8 encoding and settings