Fixed unexpected behaviour of magrathea.utils.convert.to_bytes when converting boolean values