add encoding to fix 'SyntaxError - invalid multibyte escape: /[\x80-\xFF]/'