added unicode character sanitisation to pdf