Enum params need to be converted to integers in BuildUri.