Revised the signature string filter to better encode hex codes.