Fixes #1025, spaces in id-to-taxonomy file break assignment with Mothur.

New pull request based on latest version of QIIME codebase.
That's fine to leave this here, no need for a separate PR. Just wanted to make sure the changes in this PR didn't break an existing unit test.