input_event_to_byte_string fixed to use rb_time_timeval call