convert to string before escaping
also escape in specs