Fixed reading resource files with non ascii content