PHP renderer generator: moved mbstring detection to __construct()