Use sprintf in "Untrusted Host" and "Invalid Host" exception