Added base/strutils.c and associated tests