fix reading inline csv data and reading from an xml string when building with ptree/rapidxml - closes #1857 and closes #1856