fixed some CS
fixed usage of the PHP native QP encoder on PHP >= 5.4.7 (closes #277)