fix invalid URI scheme, closes #4362
Land #4373