Terminate the output string if it hasn't been fully converted