use another workaround for strip invalid byte sequence

ref: http://stackoverflow.com/questions/14035307/ruby-invalid-byte-sequence-in-utf-8-argumenterror