Fix for Unicode userid.

Similar to the issue addressed by #25.