Consistently use :encoding($encoding)
don't try to test ->path by computing @path, instead use a fixed set of results