Only use_hex_string for R 3.1 or higher.