I'm not totally sure the regex works properly, since v8 uses unicode strings, which map ascii control characters to something like \u0000 - \u001f.

For example:

```
> p = require("./main")
{ init: [Function: init],
  _parseLayerName: [Function: parseLayerName],
  _analyzeComponent: [Function: analyzeComponent],
  _setConfig: [Function] }
> p._parseLayerName("foo\0bar.png")
[ { name: 'foo\u0000bar.png' } ]
```