Fix translation script, make it read UTF-8 source files correctly