fixing multiple unicode issues.

fixes #471
try/except statement added.

fixes #472