Still a lot of work to do.
ycm_core only deals with utf8 and the functions only accept python string objects.