Rewrote utf8 checks to use Path class instead of String in public methods.
Rewrote utf8 checks to use Path class instead of String in public methods.