Changed decoding/encoding to utf-8, Added commands.