diff --git a/uc_node_checkout.module b/uc_node_checkout.module
index 9c0b8f7..4b804b9 100644
--- a/uc_node_checkout.module
+++ b/uc_node_checkout.module
@@ -521,7 +521,7 @@ function uc_node_checkout_add_to_cart_submit(&$form, &$form_state) {
     if ($form['attributes'][$aid]['#type'] == 'checkboxes') {
       $oid = implode('|', $oid);
     }
-    $attr[] = $aid .'-'. $oid;
+    $attr[] = $aid .'-'. urlencode($oid);
   }
 
   if (!empty($attr)) {
