Fixed a small whitespace issue in to_X_sstring().
Fixed append_n_sstring() writing \0 at the wrong place.