Added flag for uppercase encoding