Guard against utf-8 encoded fields

If a field _key_ is non-ascii this test will fail with the
now caught exception. The key is transformed during the attr test.