[glassfishv4] Changes for https://java.net/jira/browse/GRIZZLY-1597 (Improve logging when url decoding invalid urls (example: invalid percent encoded sequence) and https://java.net/jira/browse/GRIZZLY-1599 (Parameter processing behavior differs depending on if the source is Buffer, char[]. or String.)
(cherry picked from commit dff5be7e97b93344cbcd50667ff5d02acab43ce4)