Correct url with str_replace