Specify encoding for reading notebook file.

Closes gh-4562