I'd use force_text() instead, it's safer.