Automatic weighing deforms my character when rigged
I believe you should first adjust the meta-rig armature to fit your character. Then generate the rig with Rigify and finally assign weights. Bad things usually happen if you scale the rig after its been generated.