Removed debug statement

Removed left over debug statement, set all open file actions back to
utf-8 encoding.