Make dbm.dumb encode strings as UTF-8. Also fix it so it accepts bytes and
strings.

Closes issue #3799.
diff --git a/Misc/NEWS b/Misc/NEWS
index 91df34f..9fb3ddd 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -19,7 +19,7 @@
 - Issue #3327: Don't overallocate in the modules_by_index list.
 
 - Issue #1721812:  Binary set operations and copy() returned the input type
-  instead of the appropriate base type.  This was incorrect because set 
+  instead of the appropriate base type.  This was incorrect because set
   subclasses would be created without their __init__() method being called.
   The corrected behavior brings sets into line with lists and dicts.
 
@@ -33,6 +33,9 @@
 Library
 -------
 
+- Issue #3799: Fix dbm.dumb to accept strings as well as bytes for keys. String
+  keys are now written out in UTF-8.
+
 - Issue #4338: Fix distutils upload command.
 
 - Issue #4354: Fix distutils register command.