Path: add encoding option to read/write. closes #148