handle unexpected output while setting JAVA_TOOL_OPTIONS enviroment variable

I set the variable of JAVA_TOOL_OPTIONS on OS X, so the bash failed with the unexpected output: 
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8