Return FALSE if non-hex char detected

Return FALSE if non-hex char detected - same behaviour as PHP version of hex2bin().