cleanup for string escaping