Replaces snprintf with std library equiv.