Bones axis rotated after import from Maya

Hi, there. First to say i am not a 3D modeller, i am programmer. So i may be wrong in terminology.

The problem is - i have a skeleton made in Maya, with local bones transform of an random bones pair is facing as it shown on the screenshot below:

Importing this skeleton in Unreal i get this:

Bones axis differs from what i see in Maya. How to prevent this import behavior?