Fixed an issue with using unicode strings instead of regular strings.

Closed #1.