Ensure all categories are downcase. Fix for #842.