fix bugs when file contains utf8 data

@coryvirok
Merge pull request #12 from rollbar/fix-unicode

fix bugs when file contains utf8 data