Use buffer-substring-no-properties instead.