The important part is the matching text from the PDF not any trailling which might be different depending of the encoding.