Optimize conversion of hex char to integer

use Character.digit(char, 16) instead of Integer.parseInt("" + char, 16), which creates a new String and StringBuilder every time.

This should speed up parsing of request parameters.