Add a convert_attributes feature similar to the current convert_tags functionality