I think schema emulation should happen in the platform directly - assuming `str_replace` here seems rather simplistic/fragile