to_csv joins string before checking for encoding and escapable_chars