Make url strings valid, if they are not.