Fix for readAllViews setting

I couldn't understand why this setting wasn't working until I realised `viewfn = view.file_name().encode("utf-8")` on line 95 was different to `fn = self.view.file_name().encode("utf_8")` on line 36..