Added all string encoding functionality