Fixes handling of unicode characters

Simple fix to directly return a unicode string instead of converting into a str and then converting into a unicode object.