String.replace flags unsupported in Node (V8)