Fix for issue #59

This will fix a bug during decode unicode to str.