fix for #2474 - respond 414 on very long url

Also tested on curl and chrome.