I don't think it's correct. If I provide a wrong name of the `file` - I still get an empty string back. Looks like a non-intuitive behavior. Why not throw an `IllegalArgumentException` instead?