Use charset instead of string