InspIRCd: fix various audit warnings.

Closes #35344.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Extract method
Remove duplicated logic from FromUrlLoader
Preserve backtrace from original exception