Fix attribute option normalization in REST api