#125 Fix diacritical marks problem when generating a PDF

Sorry for terrible code.
(to apply filters after the user clicks "Back" in the browser)