Fixed issue #24 Color code not encoding correctly on some systems.