bugfix: support widechar unaware programs