Fix NPE when converting invalid color character from legacy text
Fix uppercase color codes
Merge pull request #935 from yawkat/fix-legacy-convert-npe

Fix NPE when converting invalid color character from legacy text (Fixes #934)