Ensure 'content' is a string.