Use UTF-8 encoding.
Add print statements for test debugging.