force encoding and default locale settings for CF
fix compilation problems in unit tests