GraphML writer now checks for control characters in strings to be written, closes #794