This is a bad idea IMO. Such length restrictions are generally enforced in the application code, so after the webserver has decoded the url again anyway