fix string_pad right-pad truncation when str is longer than pad buffer