Strips the null terminator from str, if any.
input to '\0'-unterminate
true if the string had a '\0'-terminator and therefore was changed, or false otherwise.
See Implementation
Strips the null terminator from str, if any.