MAINT: io: handle a bad fmt argument in savetxt by raising a ValueError.
Merge pull request #3955 from charris/backport-1.7-3953

backport-1.7-3953