Improve performance of BinaryEncode hex format

https://issues.jboss.org/browse/RAILO-3246