utils: add Hash#encode_uri
dom/node: fix #value possibly returning undefined