Fixed the issue with renaming a file without having used the Raw view (closes #270).