check the existence of shiny:::checkEncoding at run time instead of build time