Convert unicode string to hexadecimal in pdfmarks format