read docstring with utf-8
catch exceptions when writing to file