Restructured encoder switch statement and added encode functions for each data type
Restructured encoder switch statement and added encode functions for each data type

Also added a STRING_ENCODING constant to Cbor class which determines how
strings are converted before being CBOR encoded. UTF-8 is CBOR standard.

Lemonblast/Cbor4Php