Custom writer:  read lua script as UTF-8.

This should fix #1189.