Replace Encode with Regex