Specify encoding for reading notebook file.

Closes #4562