This error means that your username/password contains non-ascii characters which pgAdmin4 not able to encode/decode.
Could you provide steps to re-produce this issue and also information like pgAdmin4 version, OS version, Postgres version, are you running pgAdmin4 in Desktop mode or Web mode ?