fix pad url to allowed length