Huddersfield duo Matty Pearson and Joseph Hungbo were relieved to have picked up a vital three points against Cardiff.