fix for issue #2511 on master branch

As I tested and It seems that **"java.net.URLEncoder"** already converts "/" characters to "%2F" but to be sure I send this PR to replace "/" characters explicitly since maybe this behaviour can be OS or JVM dependent (currently I have no idea :()