Also, calling encode with strings as well as data strings