Fixed utf-8 handling on linux