Fix coding cookies in test files.

 - Replace "UTF-8" with "utf-8" (emacs doesn't recognise the upper-case version).
 - Remove BOM from beginning of test_definition_items.py