I tried the following function, Taken from this answer written by @Sammitch:
function utf8_force_ltr($input) { $LRO = "\\xe2\\x80\\xad"; // left