Also escape html-sensitive characters in extension.