Introduce internal set-PIO-attributes method
Deprecate :enc in favour of :encoding