Fix encoding issue with strpos