make sure render_pdf always uses the locale