Fix attribute decoding during XML schema validation