title: YAML file one line filled with null characters, #0000 character not supported while reading
body: <p>I've built a python based application(which runs 24/7) that logs some information in a YAML file every few minutes. It was working perfectly for a few days. Suddenly after approximately after 2 weeks, one line in the YAML file was filled with NUL characters (416 characters of NUL to be precise).</p>
  <p>Now the suspicion is that someone might've tried to open the already running application again, so both the applications tried to write/access the same YAML file which could've caused this. But I couldn't replicate this.</p>
  <p>Just wanted to know the cause of this issue.</p>
  <p>Please let me know if someone faced the same issue before.</p>
  <p>Some context about the file writing:
  The YAML file will be loaded in append mode and a list is written inside it using the command below:</p>
  <pre><code>with open(file_path, 'a') as file:
      yaml.dump(summary_list, file)
  </code></pre>