use sizeof (not length), to correctly handle UTF8 strings