added default encoding