patching strings to work with non-raw memory images