[html] Fix bug in series name sanitize