Fix for unicode issues in staticweb

When prefix or subdir is unicode, it fails.
Fixes: bug #1158092

Change-Id: I966a7a198a5ca5ea152872c94240e8c2ebe57d36
Merge "Fix for unicode issues in staticweb"