Use public domain snprintf() implementation by Patrick Powell to avoid