Encode in pithos header values when needed