Exception is thrown on Unicode characters within supplied strings

Squashed with changes from @iancoleman's pull request #60