Alter Pull #3176 to follow discussion
diff --git a/system/core/Security.php b/system/core/Security.php
index a6fd75f..39e4f7c 100755
--- a/system/core/Security.php
+++ b/system/core/Security.php
@@ -203,9 +203,9 @@
 		if ($exclude_uris = config_item('csrf_exclude_uris'))
 		{
 			$uri = load_class('URI', 'core');
-			foreach ($exclude_uris as $excluded) {
-                		$excluded = str_replace(array(':any', ':num'), array('[^/]+', '[0-9]+'), $excluded);
-                		if (preg_match('#^'.$excluded.'$#', $uri->uri_string()))
+			foreach ($exclude_uris as $excluded)
+			{
+                		if (preg_match('#^'.$excluded.'$#i'.(UTF8_ENABLED ? 'u' : ''), $uri->uri_string()))
                 		{
                     			return $this;
                 		}
@@ -937,4 +937,4 @@
 }
 
 /* End of file Security.php */
-/* Location: ./system/core/Security.php */
\ No newline at end of file
+/* Location: ./system/core/Security.php */