Fixed #369. Corrects the HashUtils::hexToBin function for PHP 5.3 users.