string: Normalize codec name before check for ASCII.

Closes chfoo/wpull#184