[servlets] (bug-fix) Replaced use of deprecated method 'URLEncoder.encode(String)' with 'URLEncoder.encode(String,String)', using 'UTF-8' as default encoding.