Stringify boolean value in rest util