rewrite without iframe and with fixed encoding issues