Coerce to a string in HtmlSafety.

Java's convertToString() doesn't seem to be as good at this as Ruby's
to_s, and fails on things as simple as symbols.