Fix an encoding issue when rewriting dropbox URLs