It might be useful to return IO_ERROR if this fails, as `r_value` remains `nil` then - would cause a crash in foundation-legacy.cpp, line 1479 for example when calling `MCStringIsEmpty` with a `nil` parameter.