Use internal open in chunks and text

Changes the ``chunks`` and ``text`` methods to use path's own ``open`` method. In this way, a subclass that overrides ``open`` does not need to modify the other methods to make them work.
I believe encoding will always be not None at this stage due to if/else above.