Subpackage encoding and bytes functions