Convert strings to unicode before regex.

for issue #8