Removed useless to_unicode nested function