Overlay: Use hexadecimal character reference

Overlay: Replace close character (×) with hexadecimal character reference. Fixes incorrect display of '×' character in mobile menus when using different character encodings.
Multimedia plugin: Remove duplicate code.