Fixing URL-encoded piece handlers bug