export to HTML: take read actions properly (IDEA-136348), remove unnecessary extensio...