debugged the encode/decode error coming out of MySQL, I hope