GWTII-254: fixed regression in getEncodedUrl()