Some characters of Kac and Wakimoto and nonholomorphic modular functions