decode: Support attribute value parsing mode

Closes #5.