Ensure passed memory parameter is interpreted as a string, not an integer