[sync] Fix possible str.replace freeze when unpacking packer
https://github.com/einars/js-beautify/commit/4dfe26808794e072ce45be44b71de395882c0002