use string#encode

The unification in utf-8 encoding