Fix bug in use of strings and bytes.