Small fix: now encoding/decoding bgcolor