Fixed a bug in events::JoyHatSave.
Fixed bugs about istringstream usage in joystick event saves.