add new argument "encodeIfNecessary" to method HTTPUtil.toURL
add testcases for BIFs
improve testcase
solved ticket https://issues.jboss.org/browse/RAILO-2744
Merge remote-tracking branch 'origin/4.1' into 4.1