Validate proxy URL

This removes the need to check for an empty URL and provides additional protetction. It isn't perfect (no checks for local network access) but it's a step forward.