Don't rely on snprintf if you can't help it.