Backport "new" string functions missing from the Bytes module

(fixes #595)