unserializeArgs: fix RegExp creation