Closes #374 handle URIs without a host