RT #98219 test for address validation failure

I can't reproduce the error in the RT ticket, but I've applied the patch
anyway, since it looks sensible enough.

Also, fix non-ASCII request encoding.