Fixed sb_append_ch to not write the zero termination
Merge pull request #1 from questor/master

fixed string handling