diff --git a/docs/theme/nature/layout.html b/docs/theme/nature/layout.html
--- a/docs/theme/nature/layout.html
+++ b/docs/theme/nature/layout.html
@@ -10,9 +10,9 @@
border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
-
-
-
-
+
+
+
+
{% endblock %}}
diff --git a/rhodecode/lib/__init__.py b/rhodecode/lib/__init__.py
--- a/rhodecode/lib/__init__.py
+++ b/rhodecode/lib/__init__.py
@@ -235,9 +235,6 @@ def safe_str(unicode_, to_encoding=None)
if not isinstance(unicode_, basestring):
return str(unicode_)
- if not isinstance(unicode_, basestring):
- return str(unicode_)
-
if isinstance(unicode_, str):
return unicode_