Address issue #333 fixing unicode encode error
Remove unnecessary len()