Fixed attribute encoding and decoding bugs.