grffile to support spaces in notebook names

This PR fixes #3774.

This PR is an alternative to #3898