fixes #764

I can't figure out how to split this string across multiple lines and do the replacement without joining the string with +, so just going with that here.
Merge pull request #915 from gregcaporaso/issue-764

fixes #764