public static function fixEncoding($str) { return str_replace(['%28', '%29', '%7E'], ['(', ')', '~'], $str); }