modify sdstring.c :
  - fix sdstring_catlen() to support binary data
  - add function sdstring_increase_len()
  - refactor to reduce redundant codes