Revert "tolerate a str arg to writeData()"

This reverts commit 2d4e88afbd04f392ff7c3a89428d1bf7fb27da49.

On second thought, this change is likely to mask the error in most cases, and
we want add-on authors to update their add-ons anyway as they would not be
handling non-latin text in 2.0.12.