Fix malformed url