Add default encoding.   #1205.