Fix open document file preview
Add urlencode to file path when view open document