call the smart_text function with 3 arguments: field_value, value under the 'encoding' key of the options dictionary or,
field_value = smart_text ( field_value , options . get ( "encoding" , settings . DEFAULT_CHARSET ) , strings_only = True )