Fixed some unicode issues when reading files from disk