Fix content listing for non-ascii paths on files page
Created by: riyad
A new try for the incomplete fix in #1929.
As noted in https://github.com/gitlabhq/gitlabhq/pull/1929#issuecomment-10118329 the problem with history.js is still unresolved. So clicking the links directly will still fail, but opening them in a new tab will work now.