Using JS Strings with encoding option instead of base64, since JS strings support control chars