Bugfix for #872: maxleght of URI is now 4000

#872 fixed