BUG: Decode metadata to utf-8. Closes #1326.