Fix 1.8.7 Fixnum#hex error.

We call #hex on each character of a 3-digit color code, but indexing
into a string in 1.8.7 returns a Fixnum, for which there is no #hex
method. The solution is to first convert it back to a string.