add default encoding and default from in add()