Use a CustomEncoder to handle timedelta

Fixes cases like calling `procfs 1/stat`.