[FIX] pack_string: correct null string handling