cleanup HTML encoder CSS styles/classes algorithm (#135)