This was fixed after doing a clean compilation of master which i forgot about only after reporting it, this bug is not valid anymore while i still find it interesting to understand the reason why it was happening.
From:
PG Bug reporting form Date: Subject:
BUG #19028: INITDB fails post-bootstrap initialization with FATAL " " is not a valid binary digit at character 1