Replace all snprintf with UTIL_Format.


There are some differences in what ```snprintf``` does on Windows/MSVC versus Linux.
On Windows, ```snprintf ``` does not always null terminate.

This patch replaces all calls with ```UTIL_Replace``` for the sake of safety..