Use the NSURL class method fileURLWithPath: rather than URLWithString to prevent the app from crashing if there are spaces or special characters in the filename
Fixed the indentation
Merge pull request #596 from moored/master

Fix for crash when double clicking on a .realm file to launch the Realm Browser