Issue #2361727 by rpayanm: Remove drupal_convert_to_utf8.
Issue #2361845 by rpayanm: Remove drupal_substr.