Oops, our snprintf doesn't support some fancy features so use something that works...