#84 - 1.5.x - support encoding of multiple styles + tests

here comes the pull request for 1.5.x.
After merging, could you please deploy the changes to 1.5-SNAPSHOT? Thanks in advance