ruby: simplify s_append_string, preditct small ascii strings