encoding/decoding utilities are really functions, not methods