fix stripHTML() to work with non-strings