Update the character encoding of the reference number and add comments.