Hex encode the triple values in case they contain special characters.