'content' should be an IO object not a string