Replace Input::Base#to_event with codecs