tested basic character set encode and decode