Append the correct number of null bytes to the end of recoded strings