title: NULL character found in serialized string
body: <p>I am unable to <code>unserialize()</code> a backtrace that I <code>serialize()</code>'d and saved to a text file. I cannot also copy-paste the string, it only copies the data before NULL so I am unable to unserialize it back in PHP.</p>
  
  <p>Here's a small excerpt of what it looks like in Notepad++</p>
  
  <p><img src="https://i.stack.imgur.com/JmSzI.png" alt="enter image description here"></p>
  
  <p>Any ideas how to unserialize this?</p>
  
  <p>Note: I am using <code>error_log($backtrace, 3, 'file.log');</code> to save the file, then simply open in Notepad++ to copy-paste but I can't copy past the NULL character.</p>