make to_unicode attempt utf8 fallback on non-string types