Malformed URL handling