call sprintf instead of non-portable _itoa