diff --git a/lib/Minify/HTML.php b/lib/Minify/HTML.php
index <HASH>..<HASH> 100644
--- a/lib/Minify/HTML.php
+++ b/lib/Minify/HTML.php
@@ -135,7 +135,7 @@ class Minify_HTML
             .'|canvas|caption|center|col(?:group)?|dd|dir|div|dl|dt|fieldset|figcaption|figure|footer|form'
             .'|frame(?:set)?|h[1-6]|head|header|hgroup|hr|html|legend|li|link|main|map|menu|meta|nav'
             .'|ol|opt(?:group|ion)|output|p|param|section|t(?:able|body|head|d|h||r|foot|itle)'
-            .'|ul|video)\\b[^>]*>)/i', '$1', $this->_html);
+            .'|ul|video)\\b[^>]*>)/iu', '$1', $this->_html);
 
         // remove ws outside of all elements
         $this->_html = preg_replace(
Fix issue where minify() would corrupt Unicode characters (such as &nbsp;) in some environments

Adding the `u` flag there fixes an issue in my environment (MAMP <I> with PHP <I>) where `minify()` would corrupt the `&nbsp;` character (it would get replaced by the replacement character).