It is a tiny pull request. I have had this in my local version for ages. Often i had problems with blender materials throwing this random exception all over the place. It was very hard to find the cause at the blender end. So the idea was to make sure that toString was just a bit more robust.