Changed 'str' cast of value in htmlValue() to 'safe_unicode'

'str(value)' causes error when form field input (to be emailed) contains unicode.