Move string encoding to srpregister.
Handle Timeout errors during register.

Also catch all request exceptions to avoid failures.

[Closes #4358]