Add tpf_pad() to the API.

Given a tpf_state and the formatted output width, it automatically
handles field width and the `-` flag.
Use tpf_pad() in the standard converters.