filter invalid characters from contact name for generating pdf file