Add test for non-ascii characters in docstrings

Closes #1179