set document encoding to UTF-8
add error message to assertion