Attempt to rewind input just in case (fixes #132)