Importfeeds: common sanitation/replacements

Fixes #610, though perhaps not in the most elegant way.