PHP\'s str_replace() was intended only for ANSI strings and as such can mangle UTF-8 strings. However, given that it\'s binary-safe would it work properly if it
str_replace()
Yes, I think this is correct, at least I couldn't find any counter-example.