decode values before putting them in filter + cosmetics