[#67] add manage_deletion config

remove utf decode and clean up code