redis: fix crash when using FQDN in URL