How to limit 2D character velocity?

Im currently working on 2D platformer and I encountered bug with massive boost when standing on uneven surface.
So I thought limiting max velocity will help, but I found no functions to do that to 2D character.
Any ideas?