Url encoding is moved to middleware