[fixed] Path.decode/encode with query string

Fixes #490
More accurate comparison