changed sprintf uses to snprintf (#2920)
changed sprintf uses to snprintf (#2920)

* [ci] changed sprintf uses to snprintf

* checked for encoding issues with snprintf
henry0312/LightGBM,henry0312/LightGBM,microsoft/LightGBM,microsoft/LightGBM,microsoft/LightGBM,henry0312/LightGBM,henry0312/LightGBM,henry0312/LightGBM,microsoft/LightGBM,microsoft/LightGBM