Fix to_param when attribute has multibyte character