[core] use native function hex2bin() if exists (for PHP 5.4+)