length ( str , encoding_name )