Change RGB/Hex conversions to not use eval.