Added bounds check to attribute name processing.  Resolves issue #328