Modifying from_str to autodetect some response types : ticket #8605