Added optimized sprintf work-alike