The fix to the apostrophe bug is simple: go to the file mygalleries.php, function saveCat(), at line 265 you will see a bunch of codes like this:
$parent = rsgInstance::getVar( 'parent' , 0);
$id = rsgInstance::getInt( 'catid' , null);
$catname1 = rsgInstance::getVar( 'catname1' , null);
$description = rsgInstance::getVar( 'description' , null);
$published = rsgInstance::getInt( 'published' , 0);
$ordering = rsgInstance::getInt( 'ordering' , null);
$maxcats = $rsgConfig->get('uu_maxCat');
Add htmlentities to the few lines that may require apostrophes. Change it to:
$parent = rsgInstance::getVar( 'parent' , 0);
$id = rsgInstance::getInt( 'catid' , null);
$catname1 = htmlentities(rsgInstance::getVar( 'catname1' , null), ENT_QUOTES);
$description = htmlentities(rsgInstance::getVar( 'description' , null), ENT_QUOTES);
$published = rsgInstance::getInt( 'published' , 0);
$ordering = rsgInstance::getInt( 'ordering' , null);
$maxcats = $rsgConfig->get('uu_maxCat');