diff --git a/requirements.txt b/requirements.txt
index 79a8771..57e0e21 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -4,3 +4,6 @@ django-autoslug==1.4.1
 django-registration==0.7
 wsgiref==0.1.2
 South==0.7.3
+PIL
+sorl-thumbnail==11.12
+chardet==2.0.1
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index aeaa674..62eda3d 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -62,8 +62,10 @@ def can_approve_extension(user, extension):
     return user.has_perm("review.can-review-extensions")
 
 def highlight_file(filename, raw, formatter):
+    
     try:
-        lexer = pygments.lexers.guess_lexer_for_filename(filename, raw)
+        lexer = pygments.lexers.guess_lexer_for_filename(filename, raw,
+                                                         encoding='chardet')
     except pygments.util.ClassNotFound:
         # released pygments doesn't yet have .json
         # so hack around it here.
