Raise a more explicit exception if user provides non-ascii data for the credentials.

Closes #20