Force utf-8 encoding on 1.9
Merge branch 'master' into 4.x
Cast to an array for 1.9