utf8 handling
Merge pull request #63 from browserstack/utf8

utf8 handling fixes