fix reverse_c_style_string bug