Make the *snprintf (and similar) functions always null terminate the buffer properly on all platforms