Fix invalid pointer dereference in AsciiFormatter.

Using a temporary object with strtol() makes the end pointer that it
sets invalid after the call.