fixes encoding issue with px:set-doctype