Use `pack()` instead of `hex2bin()` to be compatible with PHP 5.3 (see #7010)