diff -Naurp --strip-trailing-cr fast_gallery/fast_gallery.admin.inc fast_gallery_patch/fast_gallery.admin.inc
--- fast_gallery/fast_gallery.admin.inc	2008-11-14 01:39:15.000000000 -0500
+++ fast_gallery_patch/fast_gallery.admin.inc	2008-11-14 12:17:41.000000000 -0500
@@ -270,7 +270,7 @@ function fast_gallery_general_settings_f
   // Add trailing slash to path
   if (substr($path, -1, 1) != '/') {
     $path .= '/';
-    $form_state['values']['fast_gallery_path'] = $path;
+    $form_state['values']['fast_gallery_path'] = utf8_encode($path);
   }
 
   $path = $form_state['values']['fast_gallery_path_alias'];
diff -Naurp --strip-trailing-cr fast_gallery/fast_gallery.module fast_gallery_patch/fast_gallery.module
--- fast_gallery/fast_gallery.module	2008-11-14 01:39:15.000000000 -0500
+++ fast_gallery_patch/fast_gallery.module	2008-11-14 14:02:10.000000000 -0500
@@ -451,14 +451,23 @@ function theme_fast_gallery_framework_co
       $img_path = str_replace('%25', '%', $img_path);
   }
 
+  // If Imagecache is enabled and there is a preset for full-size images,
+  // fix the URL created by imagecache_create_url()
+  if (variable_get('fast_gallery_ic_big', '<none>') == '<none>')
+    $img_path = base_path() . $img_path;
+  else {
+    $img_path = str_replace('http://', '', urldecode($img_path));
+    $img_path = 'http://'.drupal_urlencode($img_path);
+  }
+
   switch ($framework) {
     case 0:
       // No framework selected
-      $link = '<a href="' . base_path() . $img_path . '" class="'.$class_additions.'" title="' . $caption . '">' .  $img . '</a>';
+      $link = '<a href="' . $img_path . '" class="'.$class_additions.'" title="' . $caption . '">' .  $img . '</a>';
       break;
     case 1:
       // Thickbox selected
-      $link = '<a href="' . base_path() . $img_path . '" class="thickbox '.$class_additions.'" rel="frontpage" title="' . $caption . '">' .  $img . '</a>';
+      $link = '<a href="' . $img_path . '" class="thickbox '.$class_additions.'" rel="frontpage" title="' . $caption . '">' .  $img . '</a>';
       break;
     case 2:
     case 3:
@@ -468,15 +477,15 @@ function theme_fast_gallery_framework_co
       $rel = (variable_get('fast_gallery_js_framework', 0) == 2) ?
         'lightbox' : 'lightshow';
 
-      $link = '<a href="' . base_path() . $img_path . '" class="'.$class_additions.'" rel="' . $rel . '[fast_gallery]['.$caption.']">' .  $img . '</a>';
+      $link = '<a href="' . $img_path . '" class="'.$class_additions.'" rel="' . $rel . '[fast_gallery]['.$caption.']">' .  $img . '</a>';
       break;
     case 4:
       // Lightbox video selected
-      $link = '<a href="' . base_path() . $img_path . '" class="'.$class_additions.'" rel="lightvideo[width:'.$mwidth.'px; height:'.$mheight.'px;]['.$caption.']">' .  $img . '</a>';
+      $link = '<a href="' . $img_path . '" class="'.$class_additions.'" rel="lightvideo[width:'.$mwidth.'px; height:'.$mheight.'px;]['.$caption.']">' .  $img . '</a>';
       break;
     case 5:
       // Lightbox PDF selected
-      $link = '<a href="' . base_path() . $img_path . '" class="'.$class_additions.'" rel="lightframe[|width:'.$mwidth.'px; height:'.$mheight.'px; scrolling: auto;]['.$caption.']">' .  $img . '</a>';
+      $link = '<a href="' . $img_path . '" class="'.$class_additions.'" rel="lightframe[|width:'.$mwidth.'px; height:'.$mheight.'px; scrolling: auto;]['.$caption.']">' .  $img . '</a>';
       break;
   }
 
